package com.fenghongzhang.day002;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;

public class ImageLoader {

    public static void loadImg(Context context, String url, ImageView imageView){
        Glide.with(context).load(url).into(imageView);
    }

    public static void loadImgCircle(Context context, String url, ImageView imageView){
        Glide.with(context).load(url).apply(new RequestOptions().circleCrop()).into(imageView);
    }


}
